package others;
import models.Student;
import play.jobs.Job;
import play.jobs.OnApplicationStart;
import play.test.Fixtures;

/**
 * Initially insert data into db
 * 
 * @author mahmoudsakr
 */
@OnApplicationStart
public class Bootstrap extends Job<Object>
{
	public void doJob()
	{
		if( Student.count() == 0 )
		{
			Fixtures.load( "dummy-data.yml" );
		}
	}
}